package cate.game.client.request;

import java.util.concurrent.atomic.AtomicInteger;

public class Counter {
    public Counter() {

    }
    private final AtomicInteger num = new AtomicInteger();
    public void count(String name){
        try{
            num.incrementAndGet();
        }catch(Exception e){
            //nothing
        }
    }
    public int getCount(){
        return num.get();
    }
    public void reset(){
        num.set(0);
    }
}
